import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import { createPinia } from 'pinia'
import { registerStore } from './store'
import { router } from './router'
import "./assets/css/reset.css"; // 重置样式
import md5 from "js-md5";
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)

app.config.globalProperties.$md5 = md5;

app.use(createPinia())
registerStore() // 注册 Pinia
app.use(ElementPlus, { locale: zhCn })
app.use(router)
app.mount('#app')
